home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / update~4.z / update~4 / lib_stdio_notused_fscanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  610 b   |  36 lines

  1. /*                f s c a n f
  2.  *
  3.  * Formatted input from a named stream. A pointer to the required
  4.  * stream is passed to the function and items will be scanned from
  5.  * that stream.
  6.  *
  7.  * The function returns the number items scanned on success, and
  8.  * EOF on failure.
  9.  *
  10.  * Patchlevel 1.0
  11.  *
  12.  * Edit History:
  13.  */
  14.  
  15. #include "stdiolib.h"
  16.  
  17. /*LINTLIBRARY*/
  18. /*VARARGS2*/
  19. /*ARGSUSED*/
  20.  
  21. int fscanf(fp, fmt, va_alist)
  22.  
  23. FILE *fp;                /* stream */
  24. char *fmt;                /* format */
  25. va_dcl
  26.  
  27. {
  28.   va_list arg;                /* argument vector */
  29.   int v;                /* return value */
  30.  
  31.   va_start(arg);
  32.   v = vfscanf(fp, fmt, arg);
  33.   va_end(arg);
  34.   return v;
  35. }
  36.